package com.myhomework.bean;

/**
 * @author nmm
 * @date 2024-03-2024/3/12
 * @deriction njm......
 */
public class User {
  public void payof(Pay pay) {
      System.out.println("用户开始支付");
      pay.pay();
  }

  public void Pay(com.myhomework.dao.Pay pay) {
  		 pay.Payof(pay);
  }

  public void OpenDoor(Door door) {
      System.out.println("用户开门中");
      door.Open();
  }


  public void CloseDoor(Door door) {
      System.out.println("用户关门中");
      door.Close();
  }

}
